import request from '@/utils/request'
//企业列表
export function getParkListAPI(params) {
    return request({
        url: '/park/enterprise',
        method: 'get',
        params
    })
}
//查看企业所属行业列表
export function getindustryAPI() {
    return request({
        url: '/park/industry',
        method: 'get'
    })
}
//查看企业(编辑中获取数据需要)
export function getEditAPI(id) {
    return request({
        url: `/park/enterprise/${id}`
    })
}
//增加企业
export function addParkAPI(data) {
    return request({
        url: '/park/enterprise',
        method: 'post',
        data
    })
}
//编辑企业
export function editParkAPI(data) {
    return request({
        url: '/park/enterprise',
        method: 'put',
        data
    })
}
//删除企业
export function delParkAPI(id) {
    return request({
        url: `/park/enterprise/${id}`,
        method: 'delete',
        id
    })
}
//添加合同
export function addRentAPI(data) {
    return request({
        url: '/park/enterprise/rent',
        method: 'post',
        data
    })
}
//展开列表查看
export function getRentListAPI(id) {
    return request({
        url: `/park/enterprise/rent/${id}`,
        method: 'get',

    })
}
//退租
export function outRentAPI(id) {
    return request({
        url: `/park/enterprise/rent/${id}`,
        method: 'put',

    })
}